package com.zwps.biz.api.model.dto.role;

import com.zwps.biz.api.enums.RoleStatusEnum;
import com.zwps.common.api.validator.EnumOption;

import org.hibernate.validator.constraints.Length;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Size;
import java.util.Set;

@Schema(description = "修改角色")
@Getter
@Setter
@ToString
public class UpdateRoleDTO {

    /**
     * 角色名称
     */
    @Schema(description = "角色名称")
    @Length(min = 1, max = 100)
    private String roleName;

    /**
     * 描述
     */
    @Schema(description = "描述")
    @Length(max = 255)
    private String description;


    /**
     * 状态（1启用，0禁用）
     */
    @Schema(description = "状态（1启用，0禁用）")
    @EnumOption(RoleStatusEnum.class)
    private Integer status;

//    /**
//     * 删除的菜单id列表
//     */
//    @Schema(description = "删除的菜单id列表")
//    @Size(max = 999)
//    private Set<String> deletePermissionIds;
//
//    /**
//     * 新增的菜单id列表
//     */
//    @Schema(description = "新增的菜单id列表")
//    @Size(min = 0, max = 999)
//    private Set<String> addPermissionIds;

    /**
     * 菜单id列表
     */
    @Schema(description = "菜单id列表")
    @Size(min = 0, max = 999)
    private Set<String> pagePermissionIds;
}
